<?php
$conn = mysql_connect('localhost', 'root', 'vertrigo');
mysql_select_db('tdc', $conn);
$id=$_GET['stu_id'];

$sql="DELETE FROM student WHERE stu_id = $id;";
mysql_query($sql);
header("location:student.php");
exit(0);
?>